import { createSlice } from "@reduxjs/toolkit";
let HcySlice=createSlice({
    name: "HcySlice",
    initialState:{
        uname:"",
        txt1:"",
        txt2:"",
        txt3:"",
        txt4:"",
        txt5:"",
        txt6:""
    },
    reducers:{
        changeUname(state,action){
            state.uname=action.payload;
            return state;
        },
        changeTxt1(state,action){
            state.txt1=action.payload;
            return state;
        },
        changeTxt2(state,action){
            state.txt2=action.payload;
            return state;
        },
        changeTxt3(state,action){
            state.txt3=action.payload;
            return state;
        },
        changeTxt4(state,action){
            state.txt4=action.payload;
            return state;
        },
        changeTxt5(state,action){
            state.txt5=action.payload;
            return state;
        },
        changeTxt6(state,action){
            state.txt6=action.payload;
            return state;
        }
    }
})

export let {changeUname,changeTxt1,changeTxt2,changeTxt3,changeTxt4,changeTxt5,changeTxt6} = HcySlice.actions;
export default HcySlice;